package cn.uniqueinfo.dp.service.impl;

import cn.uniqueinfo.dp.mapper.UserRoleMapper;
import cn.uniqueinfo.dp.service.IUserRoleService;
import cn.uniqueinfo.dp.service.base.BaseServiceImpl;
import cn.uniqueinfo.dp.vo.UserRoleVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author:朱元勋
 * @mail:395910063@qq.com
 * @date:2019-02-13 11:25:07
 * @description: 用户角色对应表
 */
@Service
public class UserRoleServiceImpl extends BaseServiceImpl<UserRoleVO> implements IUserRoleService {
    private UserRoleMapper mapper;

    public UserRoleServiceImpl(UserRoleMapper mapper) {
        this.mapper = mapper;
        this.baseMapper = mapper;
    }

    @Override
    public List<UserRoleVO> findByUid(Long uid) {
        return this.mapper.findByUid(uid);
    }

    @Override
    public Integer deleteByUid(Long uid) {
        return this.mapper.deleteByUid(uid);
    }
}
